package com.smfx.yxt.view;

public class LateCoachRegTotalView {
	
	private Integer studyType;
	
	private Integer grade;
	//教师id
	private Integer teacherId;
	//教师姓名
	private String teacherName;
	//是否班主任
	private boolean isClassTeacher;
	//周一
	private Integer d1Count;
	//周二
	private Integer d2Count;
	//周三
	private Integer d3Count;
	//周四
	private Integer d4Count;
	//周五
	private Integer d5Count;
	//周六
	private Integer d6Count;
	//周日
	private Integer d7Count;
	//第八节
	private Integer d8Count;
	
	public Integer getStudyType() {
		return studyType;
	}
	public void setStudyType(Integer studyType) {
		this.studyType = studyType;
	}
	public Integer getGrade() {
		return grade;
	}
	public void setGrade(Integer grade) {
		this.grade = grade;
	}
	public Integer getTeacherId() {
		return teacherId;
	}
	public void setTeacherId(Integer teacherId) {
		this.teacherId = teacherId;
	}
	public String getTeacherName() {
		return teacherName;
	}
	public void setTeacherName(String teacherName) {
		this.teacherName = teacherName;
	}
	public boolean isClassTeacher() {
		return isClassTeacher;
	}
	public void setClassTeacher(boolean isClassTeacher) {
		this.isClassTeacher = isClassTeacher;
	}
	public Integer getD1Count() {
		return d1Count;
	}
	public void setD1Count(Integer d1Count) {
		this.d1Count = d1Count;
	}
	public Integer getD2Count() {
		return d2Count;
	}
	public void setD2Count(Integer d2Count) {
		this.d2Count = d2Count;
	}
	public Integer getD3Count() {
		return d3Count;
	}
	public void setD3Count(Integer d3Count) {
		this.d3Count = d3Count;
	}
	public Integer getD4Count() {
		return d4Count;
	}
	public void setD4Count(Integer d4Count) {
		this.d4Count = d4Count;
	}
	public Integer getD5Count() {
		return d5Count;
	}
	public void setD5Count(Integer d5Count) {
		this.d5Count = d5Count;
	}
	public Integer getD6Count() {
		return d6Count;
	}
	public void setD6Count(Integer d6Count) {
		this.d6Count = d6Count;
	}
	public Integer getD7Count() {
		return d7Count;
	}
	public void setD7Count(Integer d7Count) {
		this.d7Count = d7Count;
	}
	public Integer getD8Count() {
		return d8Count;
	}
	public void setD8Count(Integer d8Count) {
		this.d8Count = d8Count;
	}
	public int getTotalCount() {
		int count = 0;
		if(d1Count != null) count += d1Count.intValue();
		if(d2Count != null) count += d2Count.intValue();
		if(d3Count != null) count += d3Count.intValue();
		if(d4Count != null) count += d4Count.intValue();
		if(d5Count != null) count += d5Count.intValue();
		if(d6Count != null) count += d6Count.intValue();
		if(d7Count != null) count += d7Count.intValue();
		if(d8Count != null) count += d8Count.intValue();
		return count;
	}
	public String getGradeText() {
		return TermView.getGradeName(grade, studyType);
	}
	public String getIsClassText() {
		return isClassTeacher ? "是" : "否";
	}
}
